# eric7.Plugins.VcsPlugins.vcsMercurial.QueuesExtension.HgQueuesListDialog

Module implementing a dialog to show a list of applied and unapplied patches.

### Global Attributes

None

### Classes

HgQueuesListDialog | Class implementing a dialog to show a list of applied and unapplied patches.

### Functions

None

## HgQueuesListDialog

Class implementing a dialog to show a list of applied and unapplied patches.

### Derived from

QDialog, Ui_HgQueuesListDialog

### Class Attributes

None

### Class Methods

None

### Methods

HgQueuesListDialog | Constructor
__finish | Private slot called when the process finished or the user pressed the button.
__generateItem | Private method to generate a patch item in the list of patches.
__getSeries | Private slot to get the list of applied, unapplied and guarded patches and patches missing in the series file.
__getTop | Private slot to get patch at the top of the stack.
__markTopItem | Private slot to mark the top patch entry.
__processOutputLine | Private method to process the lines of output.
__resizeColumns | Private method to resize the list columns.
__resort | Private method to resort the tree.
__showError | Private slot to show some error.
closeEvent | Protected slot implementing a close event handler.
on_buttonBox_clicked | Private slot called by a button of the button box clicked.
start | Public slot to start the list command.

### Static Methods

None

#### HgQueuesListDialog (Constructor)

HgQueuesListDialog(vcs, parent=None)

Constructor

vcs (Hg)
  reference to the vcs object
parent (QWidget)
  parent widget

#### HgQueuesListDialog.__finish

__finish()

Private slot called when the process finished or the user pressed the button.

#### HgQueuesListDialog.__generateItem

__generateItem(index, status, name, summary, error=False)

Private method to generate a patch item in the list of patches.

index (int)
  index of the patch (-1 for missing)
status (str)
  status of the patch
name (str)
  name of the patch
summary (str)
  first line of the patch header
error (bool)
  flag indicating an error entry

#### HgQueuesListDialog.__getSeries

__getSeries(missing=False)

Private slot to get the list of applied, unapplied and guarded patches and patches missing in the series file.

missing (bool)
  flag indicating to get the patches missing in the series file

#### HgQueuesListDialog.__getTop

__getTop()

Private slot to get patch at the top of the stack.

#### HgQueuesListDialog.__markTopItem

__markTopItem(name)

Private slot to mark the top patch entry.

name (str)
  name of the patch

#### HgQueuesListDialog.__processOutputLine

__processOutputLine(line)

Private method to process the lines of output.

line (str)
  output line to be processed

#### HgQueuesListDialog.__resizeColumns

__resizeColumns()

Private method to resize the list columns.

#### HgQueuesListDialog.__resort

__resort()

Private method to resort the tree.

#### HgQueuesListDialog.__showError

__showError(out)

Private slot to show some error.

out (str)
  error to be shown

#### HgQueuesListDialog.closeEvent

closeEvent(e)

Protected slot implementing a close event handler.

e (QCloseEvent)
  close event

#### HgQueuesListDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button (QAbstractButton)
  button that was clicked

#### HgQueuesListDialog.start

start()

Public slot to start the list command.

Up